<template>
  <div class="wft-w-h-100">
    <van-grid 
      :ref="attrs.ref" 
      :column-num="attrs.col" 
      :icon-size="attrs.iconSize" 
      :border="attrs.border">
      <van-grid-item
        v-for="(item, index) in data.data"
        :key="item.id || index"
        :icon="item.icon"
        :text="item.text"
      />
    </van-grid>
  </div>
</template>
<script>
import useRequestMixin from '../../../mixins/useRequest'
import useAttrsMixin from '../../../mixins/useAttrs'
export default {
  name: 'basicGrid',
  mixins: [useRequestMixin, useAttrsMixin],
  props: {
    curComp: {
      type: Object,
      required: true
    },
    data: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>
<style scoped>
.wft-w-h-100 {
  width: 100%;
  height: 100%;
}
</style>
